<span style="font-size: 25px; line-height: 60px;" v-if="isCollapse === false" @click="hideAside"><i class="el-icon-s-fold"></i> </span>

<span style="font-size: 25px; line-height: 60px;" v-if="isCollapse === true" @click="showAside"><i class="el-icon-s-unfold"></i> </span>

<span style="padding-left: 45px; line-height: 60px;">
  <el-select v-model="houseDef" placeholder="请选择" style="vertical-align:20%;" @change="changeHouse">
    <el-option v-for="item in houseList" :key="item.id" :label="item.name" :value="item.id">
    </el-option>
  </el-select>
</span>

<el-dropdown trigger="click">
  <span style="font-size: 17px;"><i class="el-icon-user-solid"></i> {$layout_login_user.username} </span>
  <template #dropdown>
    <el-dropdown-menu>
      <el-dropdown-item @click="changePassword">修改密码</el-dropdown-item>
      <el-dropdown-item divided @click="onLogout">退出登陆</el-dropdown-item>
    </el-dropdown-menu>
  </template>
</el-dropdown>

<el-dialog title="修改密码" v-model="passwordVisible">
  <el-form :model="pawwordData" :rules="pawwordRules" ref="pawwordData">
    <el-form-item label="新密码" label-width="120px" prop="password">
      <el-input v-model="pawwordData.password" autocomplete="off" show-password></el-input>
    </el-form-item>
    <el-form-item label="再次输入密码" label-width="120px" prop="password2">
      <el-input v-model="pawwordData.password2" autocomplete="off" show-password></el-input>
    </el-form-item>
  </el-form>
  <template #footer>
    <span class="dialog-footer">
      <el-button @click="passwordVisible = false">取 消</el-button>
      <el-button type="primary" @click="passwordSave()">确 定</el-button>
    </span>
  </template>
</el-dialog>